package mapper;

import entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<String> selectAllType();

    List<Product> selectAllPro();

    List<Product> selectByType(@Param("type") String type,@Param("pageNum") int pageNum,@Param("pageCount")int pageCount);

    List<Product> selectAllProduct(@Param("pageNum") int pageNum,@Param("pageCount")int pageCount);

    int selectCountByTypename(@Param("type") String type);

}